package basic.scopeOfModifier;

/**
 * @Description: TODO 同包下其他类
 * @Author: wzj
 * @Date: 2020/11/19 18:50
 */
public class OtherClass {

    public void print(){
        ParentClass parentClass=new ParentClass();
//        System.out.println(parentClass.intPublic+" "+parentClass.intProtected+" "+parentClass.intDefault+" "+parentClass.intPrivate);// parentClass.intPrivate报错
        System.out.println(parentClass.intPublic+" "+parentClass.intProtected+" "+parentClass.intDefault);
    }
}
